include_directories(${PROJECT_SOURCE_DIR}/base/include)
include_directories(${PROJECT_SOURCE_DIR}/common/include)
include_directories(${PROJECT_SOURCE_DIR}/foundation/media/include)
include_directories(${PROJECT_SOURCE_DIR}/foundation/stream_server/include)
include_directories(${PROJECT_SOURCE_DIR}/foundation/web_server/include)
include_directories(${PROJECT_SOURCE_DIR}/foundation/record/include)
include_directories(${PROJECT_SOURCE_DIR}/third_party/include)
include_directories(${PROJECT_SOURCE_DIR}/hal/init/include)

# 添加源码目录
include_directories(${PROJECT_SOURCE_DIR}/foundation/record/src)

link_directories(${PROJECT_SOURCE_DIR}/third_party/lib/${CMAKE_SYSTEM_PROCESSOR})
link_libraries(${EL_ALL_TEST_LIBS})

# 添加测试
enable_testing()

# 添加测试可执行文件
add_executable(event_storage_test
event_storage_test.cpp
)

# 添加测试
add_test(NAME EventStorageTest COMMAND event_storage_test)
